CREATE TABLE [dbo].[TDKARD_DOCU]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[NU_SECU] [dbo].[TD_IN_001] NOT NULL CONSTRAINT [DF__TDKARD_DO__NU_SE__335592AB] DEFAULT ((0)),
[CO_TIPO_DOCU] [dbo].[TD_VC_003] NOT NULL,
[NU_DOCU_CLIE] [dbo].[TD_VC_020] NOT NULL,
[CO_ESTA_DOCU] [dbo].[TD_VC_003] NOT NULL,
[CO_CLIE] [dbo].[TD_VC_020] NOT NULL,
[NU_CORR_MODI] [dbo].[TD_VC_008] NULL,
[CO_ESTA_ACTU] [dbo].[TD_VC_003] NOT NULL,
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TDKARD_DO__CO_US__3449B6E4] DEFAULT (suser_sname()),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TDKARD_DO__FE_US__353DDB1D] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TDKARD_DO__CO_US__3631FF56] DEFAULT (suser_sname()),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TDKARD_DO__FE_US__3726238F] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TDKARD_DOCU] ADD CONSTRAINT [PK__TDKARD_D__EA88196D6E6C36D8] PRIMARY KEY CLUSTERED  ([CO_EMPR], [NU_SECU]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TDKARD_DOCU] ADD CONSTRAINT [FK__TDKARD_DO__CO_EM__53A33203] FOREIGN KEY ([CO_EMPR]) REFERENCES [dbo].[TMPARA_TESO] ([CO_EMPR])
GO
